<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="wt.httpgw.URLFactory"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

	
<%
     String baseUrl = new URLFactory().getBaseHREF();
%>
<head>
	<link rel="stylesheet" type="text/css" href="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/themes/default/easyui.css">  
    <link rel="stylesheet" type="text/css" href="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/themes/icon.css">  
    <script type="text/javascript" src="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/jquery-1.7.2.min.js"></script>  
    <script type="text/javascript" src="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/jquery.easyui.min.js"></script> 
    <script type="text/javascript" src="<%=baseUrl %>shmged/javascript/util/shmged/commons.js"></script> 
</head>

<body>
<div style="width: 560px;">
<div style="margin:10px 0;"></div>
<div class="easyui-panel" title="项目进度管理">
<form id="form1" name="form1" method="post" ENCTYPE="multipart/form-data" >
	<table border="1px" height="200" bordercolor="00BFFF" cellspacing="0px" style="border-collapse:collapse" class="easyui-panel">
		<tr>
			<td rowspan=1 colspan=4  align=center  width="120" height="50">项目进度管理</td>
   		</tr>
		<tr>
			<td align="right" style="text-align: left" height="40">项目计划开始时间</td><td align="left"><input type="text" id="StartTime" name="StartTime" /></td>
			<td align="right" style="text-align: left" height="40">项目计划结束时间</td><td align="left"><input type="text" id="EndTime" name="EndTime" /></td>
		</tr>
		<tr>
			<td align="right" style="text-align: left" height="40">项目实际开始时间</td><td align="left"><input type="text" id="ActualStartTime" name="ActualStartTime" /></td>
			<td align="right" style="text-align: left" height="40">项目实际结束时间</td><td align="left"><input type="text" id="ActualEndTime" name="ActualEndTime" /></td>
		</tr>
		<tr>
			<td rowspan=1 colspan=4  style="text-align: left" align="right"  width="120"  height="20">项目计划</td>
		</tr>
		<tr>
			<td align="right"  height="60">项目总体完成情况说明</td><td rowspan=1 colspan=4  align=center></td>
		</tr>		
		</table>
</form>
</div>
	    <div style="text-align:center;padding:5px;">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="yanzheng()">提交</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重置</a>
	    </div>
<SCRIPT LANGUAGE="JavaScript">
function yanzheng(){
	 var name=document.getElementById("name").value;
	 var AEAuthenticationRealm=document.getElementById("AEAuthenticationRealm").value;
	 var AEFJianchaCycle=document.getElementById("AEJianchaCycle").value;
	 var AEFJianchaCycle=document.getElementById("AEFJianchaCycle").value;
	 var ASphaseexpecte=document.getElementById("ASphaseexpecte").value;	 	 
		if(name==""||name==null||AEAuthenticationRealm==""||AEAuthenticationRealm==null)
		{
			$('#form1').form('submit');
			alert("注意: 缺失必需的信息\n\n您必须为所有带星号 (*) 的必填字段，指定有效的信息。");
			return;
		}
		var AEJianchaCycle=document.getElementById("AEJianchaCycle").value;
		if((/^-?\d+\.?\d*$/.test(AEJianchaCycle))==false&&AEJianchaCycle!=""&&AEJianchaCycle!=null)
		{
			alert("注意: 监查周期输入的不是实数。");
			return;
		}
		var AEFJianchaCycle=document.getElementById("AEFJianchaCycle").value;
		if((/^-?\d+\.?\d*$/.test(AEFJianchaCycle))==false&&AEFJianchaCycle!=""&&AEFJianchaCycle!=null)
		{
			alert("注意: 首次监查周期输入的不是实数。");
			return;
		}
		var AEValidDate=document.getElementById("AEValidDate").value;
		if((/^-?\d+\.?\d*$/.test(AEValidDate))==false&&AEValidDate!=""&&AEValidDate!=null)
		{
			alert("注意: 证书有效期输入的不是实数。");
			return;
		}
		var AEJianChaTimes=document.getElementById("AEJianChaTimes").value;
		if((/^-?\d+$/.test(AEJianChaTimes))==false&&AEJianChaTimes!=""&&AEJianChaTimes!=null)
		{
			alert("注意: 监查次输入的不是整数。");
			return;
		}
		var AEReevaluationTimes=document.getElementById("AEReevaluationTimes").value;
		if((/^-?\d+$/.test(AEReevaluationTimes))==false&&AEReevaluationTimes!=""&&AEReevaluationTimes!=null)
		{
			alert("注意: 复评次数输入的不是整数。");
			return;
		}else{
			$('#form1').form('submit');
			$('#form1').submit();
			//document.form1.submit();
			}
		var values="";
		var checkBoxs=document.getElementsByName("AEAuthenticationType1")
		{
			for(var i=0;i<checkBoxs.length;i++)
			{
				if(checkBoxs[i].checked)
				{
					values+=checkBoxs[i].value+";";
				}
			}

		}
		//alert(values);
		document.getElementById("AEAuthenticationType").value=values;
	 
}

function clearForm(){
	$('#form1').form('clear');
}

function initCreateQues(){
	
	$("#form1").form({
		url:'<%=baseUrl%>shmged/jsp/com/shlcm/examine/saveExamineServicePage.jsp',
		onSubmit:function (){
		},
		success:function (data){
			//alert(data);
			if(data.indexOf("ERROR") != -1){
				alert(data);
			}else{
				alert(data);
			}
			hideProcessMsg("prince_process_ques");
		},
		onLoadError:function (){
			hideProcessMsg("prince_process_ques");
		}
	});
}
initCreateQues();
	</script>
</div>
</body>

